package com.breadenglish.cms.api.app.sys.context;

/**
 * 异常上下文对象
 */
public class OperateLogContextHolder {

    private static final ThreadLocal<String> localOperateLog = new ThreadLocal<String>();

    public static void setOperateLog(String operateLog) {
        localOperateLog.set(operateLog);
    }

    public static String getOperateLog() {
        return localOperateLog.get();
    }

    public static void removeOperateLog() {
        localOperateLog.remove();
    }

}
